package com.boboPlanet.comm.entity.dto;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * @Description: TODO
 * @Author: mis_wu
 * @Date: 2023/2/14
 **/
@Data
public class LoginUserInfoDTO implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 登录方式 枚举: account/email/phone
     */
    private String loginMode;
    private String email;
    private String phone;


    /**
     * 账户id
     */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long accountId;

    /**
     * 用户id
     */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long userId;

    /**
     * 姓名
     */
    private String userName;

    /**
     * 账号
     */
    private String loginAccount;

    /**
     * 密码
     */
    private String loginPwd;

    /**
     * 登录有效期 unit:h
     */
    private Integer loginValidityDay;

    /**
     * 登录失败次数
     */
    private Integer loginFailedCount;

    /**
     * token 可以考虑去掉
     */
    private String token;


}
